package org.ahmet;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
import java.io.Serializable;

@ManagedBean
@SessionScoped
public class MessageBean implements Serializable {

	private static final long serialVersionUID = 1L;

	@ManagedProperty(value = "#{helloBean}")
	private HelloBean helloBean;

	public void setHelloBean(HelloBean helloBean) {
		this.helloBean = helloBean;
	}
	
	public String getHelloMessage(){
		return "m_" + helloBean.getName();
	}
}